extends /templates/core/modal-base-ozaria

block modal-header-content
  if view.options.nonUserCodeProblem
    h3(data-i18n="play_level.non_user_code_problem_title") Unable to Load Level
  else
    h3(data-i18n="play_level.infinite_loop_title") Infinite Loop Detected

block modal-body-content
  div
    if view.options.nonUserCodeProblem
      p.medium-gray(data-i18n="[html]play_level.non_user_code_problem_description", data-i18n-options=JSON.stringify({error: view.options.problem ? view.options.problem.message || '' : ''}))
    else
      p.medium-gray(data-i18n="play_level.infinite_loop_description")

    p.medium-gray
      span.spr(data-i18n="play_level.check_dev_console") You can also open the developer console to see what might be going wrong.
      a(href="http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers/77337#77337", data-i18n="play_level.check_dev_console_link", target="_blank") (instructions)

block modal-footer-content
  if !view.options.isCapstone
    a(href='#', data-dismiss="modal", aria-hidden="true", data-i18n="play_level.infinite_loop_try_again").btn.ozaria-secondary-button#restart-level-infinite-loop-retry-button Try Again
    a(href='#', data-dismiss="modal", aria-hidden="true", data-i18n="play_level.infinite_loop_reset_level" style="background-color: #a00;").btn.ozaria-primary-button#restart-level-infinite-loop-confirm-button Reset Level
  a(href='#', data-dismiss="modal", aria-hidden="true", data-i18n="play_level.infinite_loop_comment_out").btn.btn-primary.ozaria-primary-button#restart-level-infinite-loop-comment-button Comment Out My Code
